package com.cac.demo.dao.gkLog;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Mapper
@Repository
public interface WcsLogRecordDao {

    int insertWcsLog(@Param("logMap") HashMap logMap);

    int queryTaskExists(@Param("wmsTaskId") String wmsTaskId, @Param("command") String command);

    //修改日志处理时长
    int updateLog(@Param("map") HashMap map);

    int updateDetailLog(@Param("map") HashMap map);

    HashMap selectWmsTaskIdByPalletCode(@Param("palletCode") String palletCode);

    void updateGkLogState(@Param("msGkLogId") String msGkLogId);

    void dealShelves(@Param("palletCode") String palletCode, @Param("startCode") String startCode);

    void dealShelvesStatus(@Param("palletCode") String palletCode, @Param("startCode") String startCode);
    //查询未完成的任务
    List<HashMap> queryUnFinishTask();

    //定时清理货架
    int cleanShevelsWorkbin();
}
